package com.dorje.sys.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dorje.sys.dao.UserDao;
import com.dorje.sys.entity.User;
import com.dorje.sys.service.UserService;

@Service(value="userService")
public class UserServiceImpl extends BaseServiceImpl<User> implements UserService {
	
	@Autowired
	UserDao userDao;
	
	@Override
	public List<Map> findPermByUserId(Integer userId) {		
		return userDao.findPermByUserId(userId) ;
	}

	@Override
	public Integer checkAccount(User user) {
		return userDao.checkAccount(user);
	}

	@Override
	public User findInfoByAccount(String account) {
		return userDao.findInfoByAccount(account);
	}
	
	
	
	
}
